package baiwa.rta.dao;

import baiwa.rta.model.DataTableModel;
import baiwa.rta.model.RMrmlstModel;
import baiwa.rta.model.RMrmownModel;
import baiwa.rta.model.RMrmtntModel;

import java.util.List;

public interface RoomProfileDao {

    public RMrmlstModel findRoomProfileByAddress(RMrmlstModel roomProfile);

    public List<RMrmlstModel> findRoomProfileByCriteria(RMrmlstModel roomProfile);
    
    public RMrmlstModel findRoomProfileById(Integer id);

    public void create(RMrmlstModel model) throws Exception;
    public void create(RMrmownModel model) throws Exception;
    public void create(RMrmtntModel model) throws Exception;

    public boolean update(RMrmlstModel model);
    public boolean update(RMrmownModel model);
    public boolean update(RMrmtntModel model);

    public boolean delete(RMrmlstModel model);

    public DataTableModel<RMrmlstModel> findDataTable(RMrmlstModel model, int iDisplayStart, int iDisplayLength);

}
